package com.feihong.txgw.tx_model;

import com.feihong.txgw.inter.contract.product.IHotSearchContract;
import com.feihong.txgw.model.bean.user.HotSearchDataModel;
import com.feihong.txgw.utils.helper.RxHelper;
import com.feihong.txgw.utils.manage.RetrofitManager;

import java.util.HashMap;

import io.reactivex.Observable;

/**
 * @Author wangziheng
 * @ProjectName txgw_app
 * @ClassName HotSearchMainModel
 * @package com.feihong.txgw.tx_model
 * @data 2018/5/8 10:58
 * @Describe
 * @Change
 */
public class HotSearchMainModel implements IHotSearchContract.IHotSearchMainModel {
    @Override
    public Observable<HotSearchDataModel> getHotSerachGoods() {
        return RetrofitManager.getInstance().getHotSearchGoods(new HashMap<String, String>()).compose(RxHelper.<HotSearchDataModel>rxSchedulerHelper());
    }

    public static HotSearchMainModel create(){
        return new HotSearchMainModel();
    }
}
